package com.ruoyi.project.slideshow.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.slideshow.mapper.AppSlideshowMapper;
import com.ruoyi.project.slideshow.domain.AppSlideshow;
import com.ruoyi.project.slideshow.service.IAppSlideshowService;

/**
 * 轮播图Service业务层处理
 * 
 * @author wyh
 * @date 2024-07-03
 */
@Service
public class AppSlideshowServiceImpl implements IAppSlideshowService 
{
    @Autowired
    private AppSlideshowMapper appSlideshowMapper;

    /**
     * 查询轮播图
     * 
     * @param id 轮播图主键
     * @return 轮播图
     */
    @Override
    public AppSlideshow selectAppSlideshowById(Long id)
    {
        return appSlideshowMapper.selectAppSlideshowById(id);
    }

    /**
     * 查询轮播图列表
     * 
     * @param appSlideshow 轮播图
     * @return 轮播图
     */
    @Override
    public List<AppSlideshow> selectAppSlideshowList(AppSlideshow appSlideshow)
    {
        return appSlideshowMapper.selectAppSlideshowList(appSlideshow);
    }

    /**
     * 新增轮播图
     * 
     * @param appSlideshow 轮播图
     * @return 结果
     */
    @Override
    public int insertAppSlideshow(AppSlideshow appSlideshow)
    {
        return appSlideshowMapper.insertAppSlideshow(appSlideshow);
    }

    /**
     * 修改轮播图
     * 
     * @param appSlideshow 轮播图
     * @return 结果
     */
    @Override
    public int updateAppSlideshow(AppSlideshow appSlideshow)
    {
        return appSlideshowMapper.updateAppSlideshow(appSlideshow);
    }

    /**
     * 批量删除轮播图
     * 
     * @param ids 需要删除的轮播图主键
     * @return 结果
     */
    @Override
    public int deleteAppSlideshowByIds(Long[] ids)
    {
        return appSlideshowMapper.deleteAppSlideshowByIds(ids);
    }

    /**
     * 删除轮播图信息
     * 
     * @param id 轮播图主键
     * @return 结果
     */
    @Override
    public int deleteAppSlideshowById(Long id)
    {
        return appSlideshowMapper.deleteAppSlideshowById(id);
    }
}
